package com.example.exam.mapper;

import com.example.exam.pojo.DTO.ExamPaperAnswerDTO.ExamPaperAnswerUpdate;
import com.example.exam.pojo.entity.TExamPaperQuestionCustomerAnswer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.exam.pojo.vo.ExamPaperAnswerVO.AnswerItemCorrectVO;
import io.swagger.models.auth.In;
import org.intellij.lang.annotations.RegExp;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xiaohu
 * @since 2022-12-26
 */
@Repository
public interface TExamPaperQuestionCustomerAnswerMapper extends BaseMapper<TExamPaperQuestionCustomerAnswer> {

    List<TExamPaperQuestionCustomerAnswer> ListByPaperAnswerId(Integer id);

    TExamPaperQuestionCustomerAnswer selectById(Integer id);

    Integer selectExamPaperAnswerIdById(Integer id);

    int updateScore(List<ExamPaperAnswerUpdate> examPaperAnswerUpdates);

    int updateScore2(AnswerItemCorrectVO answerItemCorrectVO);


}
